package com.girl.controller;

import com.girl.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

/**
 * Created by zzy on 2017/12/10.
 */
@RestController
@RequestMapping("/girl")
public class HelloController {


    @Autowired
    private GirlProperties girlProperties;

    @RequestMapping(value = {"/hello","/hi"},method = RequestMethod.GET)
  //  @GetMapping(value = {"/hello","/hi"})
   // @PostMapping()
    public String say(){
        return girlProperties.getContent();
    }
}
